package cn.geminis.lowcode.compiler.code;

import cn.geminis.lowcode.compiler.util.JdkTreeMakerUtils;
import com.sun.source.tree.LiteralTree;
import lombok.RequiredArgsConstructor;

/**
 * @author puddi
 */
@RequiredArgsConstructor
public class LcLiteral extends AbstractExpression<LiteralTree> {
    private final Object value;

    @Override
    protected LiteralTree createJdkTree() {
        return JdkTreeMakerUtils.literal(value);
    }

}
